package com.societyGames.codeExercise
{
import flash.events.Event;

/**
 * Event representing an Error.
 * @author ...
 */
public class ErrorEvent extends Event
{
  private var _error:Error;

  public function ErrorEvent(type:String, error:Error, bubbles:Boolean = false, cancelable:Boolean = false)
  {
    super(type, bubbles, cancelable);
    this._error = error;
  }

  public function get error():Error
  {
    return this._error;
  }

  override public function clone():Event
  {
    return new ErrorEvent(this.type, this._error, this.bubbles, this.cancelable);
  }
}
}